package com.song.JavaThread_ch3_5;

public class Grouper implements Runnable{
	
	
	private Results results;
	
	
	
	public Grouper(Results results) {
		super();
		this.results = results;
	}



	public void run() {
		int finalResult = 0;
		System.out.printf("Grouper：Processing results ..\n");
		int data[] =results.getData();
		for(int numer :data)
		{
			finalResult+=numer;
		}
		System.out.printf(" grouper : total result %d" , finalResult);
		
	}

}
